RaisingLight.Framework.DrawingContext = function(context)
{
    this.Context = context;
    
    this.DrawLine = function(pen, point0, point1)
    {
        this.Context.strokeStyle = pen.StrokeStyle;
        this.Context.lineWidth = pen.LineWidth;
        this.Context.fillStyle = pen.FillStyle;
        
        this.Context.moveTo(point0.X, point0.Y);
        this.Context.lineTo(point1.X, point1.Y);

        this.Context.stroke();
        this.Context.fill();
    };
    
    this.DrawRectangle = function(brush, pen, rectangle)    
    {
        this.Context.strokeStyle = pen.StrokeStyle;
        this.Context.lineWidth = pen.LineWidth;
        this.Context.fillStyle = pen.FillStyle;
        
        this.Context.strokeRect(rectangle.Location.X, rectangle.Location.Y, rectangle.Size.Width, rectangle.Size.Height);

        this.Context.stroke();
        this.Context.fill();
    };
	
	this.DrawText = function(formattedText, origin)		
	{
		// TODO: Draws formatted text at the specified location. 
		this.Context.strokeText(formattedText.Text, origin.X, origin.Y);
	};

};
